package com.cn.kabalifemerchants.ui.login.bean;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/9.
 * function:
 */
public class CooperationSreviceListBean {


    /**
     * code : 200
     * result : [{"id":1,"title":"家政","pid":0,"sort":0,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/","type":1,"money":"0.00","created_at":"2020-08-06 17:18:38","updated_at":"2020-08-25 11:43:57","level":1,"children":[{"id":5,"title":"保姆","pid":1,"sort":0,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/","type":1,"money":"0.01","created_at":"2020-08-28 10:13:30","updated_at":"2020-08-31 11:36:40","level":2,"children":[],"last":true},{"id":9,"title":"扫地","pid":1,"sort":0,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/","type":1,"money":"1.00","created_at":"2020-08-28 10:35:39","updated_at":"2020-08-31 11:36:46","level":2,"children":[],"last":true}],"last":false},{"id":2,"title":"装修","pid":0,"sort":1,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/good/1598326458BzjIRd.png","type":1,"money":"0.00","created_at":"2020-08-06 17:20:07","updated_at":"2020-08-25 11:44:09","level":1,"children":[{"id":3,"title":"客厅","pid":2,"sort":2,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/good/15983274915Oezqd.png","type":1,"money":"100.00","created_at":"2020-08-25 11:44:25","updated_at":"2020-08-31 11:36:15","level":2,"children":[],"last":true},{"id":4,"title":"餐厅","pid":2,"sort":3,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/good/1598327101OGr16m.png","type":1,"money":"200.00","created_at":"2020-08-25 11:44:33","updated_at":"2020-08-31 11:36:24","level":2,"children":[],"last":true}],"last":false}]
     * msg : OK
     */

    private int code;
    private String msg;
    private List<ResultBean> result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * id : 1
         * title : 家政
         * pid : 0
         * sort : 0
         * status : 1
         * icon : http://oss-fang.xiaoxiucai.xyz/
         * type : 1
         * money : 0.00
         * created_at : 2020-08-06 17:18:38
         * updated_at : 2020-08-25 11:43:57
         * level : 1
         * children : [{"id":5,"title":"保姆","pid":1,"sort":0,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/","type":1,"money":"0.01","created_at":"2020-08-28 10:13:30","updated_at":"2020-08-31 11:36:40","level":2,"children":[],"last":true},{"id":9,"title":"扫地","pid":1,"sort":0,"status":1,"icon":"http://oss-fang.xiaoxiucai.xyz/","type":1,"money":"1.00","created_at":"2020-08-28 10:35:39","updated_at":"2020-08-31 11:36:46","level":2,"children":[],"last":true}]
         * last : false
         */

        private int id;
        private String title;
        private int pid;
        private int sort;
        private int status;
        private String icon;
        private int type;
        private String money;
        private String created_at;
        private String updated_at;
        private int level;
        private boolean last;
        private List<ChildrenBean> children;
        private boolean isCheck = false;

        public boolean isCheck() {
            return isCheck;
        }

        public void setCheck(boolean check) {
            isCheck = check;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public boolean isLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * id : 5
             * title : 保姆
             * pid : 1
             * sort : 0
             * status : 1
             * icon : http://oss-fang.xiaoxiucai.xyz/
             * type : 1
             * money : 0.01
             * created_at : 2020-08-28 10:13:30
             * updated_at : 2020-08-31 11:36:40
             * level : 2
             * children : []
             * last : true
             */

            private int id;
            private String title;
            private int pid;
            private int sort;
            private int status;
            private String icon;
            private int type;
            private String money;
            private String created_at;
            private String updated_at;
            private int level;
            private boolean last;
            private List<?> children;
            private boolean isCheck = false;

            public boolean isCheck() {
                return isCheck;
            }

            public void setCheck(boolean check) {
                isCheck = check;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getPid() {
                return pid;
            }

            public void setPid(int pid) {
                this.pid = pid;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getMoney() {
                return money;
            }

            public void setMoney(String money) {
                this.money = money;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public boolean isLast() {
                return last;
            }

            public void setLast(boolean last) {
                this.last = last;
            }

            public List<?> getChildren() {
                return children;
            }

            public void setChildren(List<?> children) {
                this.children = children;
            }
        }
    }
}
